package cwb
import scala.util.parsing.combinator._
import scala.util.matching.Regex
import scala.util.parsing.combinator.syntactical._
import scala.collection.immutable.HashMap
import com.sun.org.apache.xalan.internal.xsltc.compiler.ForEach

// Expects ; to be cut off and \n stripped before taking the input.
object CWBParser extends RegexParsers {
  
  // Parsing done by matching commands to partial list functions
  // to then be applied to remaining arguments.
  val functionMap: HashMap[String, String => Unit] =
    HashMap("help" -> println)
  
  //def apply(input: String) = CCSParser.apply(input)
  // Register all keys as lexicals available for processing.
}
